<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Login Form</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="box">
        <h2 v-text="box_name"></h2>
        <p v-text="box_hint"></p>
        <form action="#">
            <div class="inputBox">
                <input type="email" name="email" required value=""
                 onkeyup="this.setAttribute('value',this.value);">
                <label for="email" v-text="email_hint"></label>
            </div>
            <div class="inputBox">
                <input type="password" name="password" required value="">
                <label for="password" v-text="password_hint"></label>
            </div>
            <div class="forgot">
                <button v-text="forgot_password"></button>
            </div>
            <div class="creat_or_submit">
                <button v-text="creat_account"></button>
                <input type="submit" name="sign-in" v-bind:value="submit_button_value">
            </div>
        </form>
    </div>
    <script>
        var box = new Vue({
            el:".box",
            data:{
                box_name:"登录",
                box_hint:"使用您的电子邮件以登录",
                email_hint:"电子邮箱地址或电话号码",
                password_hint:"密码",
                forgot_password:"忘记密码？",
                creat_account:"创建账号",
                submit_button_value:"登录"
            }
        })
    </script>
</body>
</html>